/**
 * 
 */
package org.insia.smartposse.xfire.service;

import org.insia.smartposse.config.DAOFactory;
import org.insia.smartposse.metier.Messagerie;
import org.insia.smartposse.metier.webservice.LightMessagerie;
import org.insia.smartposse.xfire.iservice.IMessagerieService;

/**
 * @author raguerri
 * @since 18 avr. 07
 * @version 0.0.1
 * 
 */
public class MessagerieService implements IMessagerieService{

	/* (non-Javadoc)
	 * @see org.insia.smartposse.xfire.iservice.IFreelance#getLFreelance(long)
	 */
	public LightMessagerie get(long id) {
		LightMessagerie lmess = null;
		try {
			Messagerie mess = DAOFactory.getMessagerieDAO().get(id);
			lmess = mess.setLight();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return lmess;
	}

}
